package com.navinfo.tripanalysis.common.config;


import com.navinfo.tripanalysis.common.arithmetic.annotation.Arithmetic;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.ParameterizedType;

/**
 * @author 水哥
 */
public class InitConfig<T> {
    private static Logger logger = LoggerFactory.getLogger(InitConfig.class);

    @SuppressWarnings(value = "unchecked")
    protected String modelName = ((Class<T>) (((ParameterizedType) this.getClass().getGenericSuperclass()).getActualTypeArguments()[0])).getAnnotation(Arithmetic.class).name();

}
